package com.etc.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.etc.entity.Dynamic;

@Repository
public interface DynamicMapper {
	int deleteByPrimaryKey(Integer dyid);

	int insert(Dynamic record);

	int insertSelective(Dynamic record);

	Dynamic selectByPrimaryKey(Integer dyid);

	int updateByPrimaryKeySelective(Dynamic record);

	int updateByPrimaryKey(Dynamic record);

	// 根据用户ID查询所有的动态
	List<Dynamic> selectByUserid(int userid);
}